package crp.core.portal.domain.models;


import com.qwlabs.storage.models.StorageObject;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;

@Getter
@Builder
@AllArgsConstructor
public class UpdateNewsArticleCommand {
    private final String id;
    private final String title;
    private final String content;
    private final StorageObject cover;

    public void update(NewsArticleEntity entity) {
        entity.setTitle(title);
        entity.setContent(content);
        entity.setContent(content);
    }
}
